<template>
  <div>
    <Ueditor :value="ueditor.value" :config="ueditor.config" ref="ue"></Ueditor>
    <input type="button" value="显示编辑器内容（从控制台查看）" @click="returnContent">
  </div>
</template>

<script>
import Ueditor from '../components/ue.vue'
export default {
  components: {
    Ueditor
  },
  data () {
    return {
      data: {
        content: ''
      },
      ueditor: {
        value: '请开始你的表演',
        config: {
          initialFrameWidth: 800,
          initialFrameHeight: 100
        }
      }
    }
  },
  methods: {
    returnContent () {
      this.data.content = this.$refs.ue.getUEContent()
      console.info(this.data.content)
    }
  }
}
</script>
